package com.dnjn.happiness.emo.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dnjn.happiness.common.core.web.domain.BaseEntity;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.time.LocalDateTime;

/**
 * 任务状态记录对象 emo_user_record_task_timeline
 * 
 * @author amber
 * @date 2024-01-12
 */
@Schema(name = "UserRecordTaskTimeline", description = "任务状态记录")
@Accessors(chain = true)
@Getter
@Setter
@TableName("emo_user_record_task_timeline")
public class UserRecordTaskTimeline extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private String content;

    /**  */
    private String addressline;

    /** emo_user_record_task.task_status */
    private String taskStatus;

    /** PK */
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value = "task_timeline_id", type = IdType.ASSIGN_ID)
    private Long taskTimelineId;

    /** 记录点状态 OK-正常 NG-异常 */
    private String recordStatus;

    /** 是否删除|0-否 1-是 */
    private String deleted;

    /**  */
    private String attachmentJson;

    /** 当前时间 */
    private LocalDateTime dateCurr;

    /** 纬度 */
    private String latitude;

    /**  */
    private Long taskId;

    /** 经度 */
    private String longitude;

    





    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("remark", getRemark())
            .append("content", getContent())
            .append("updateTime", getUpdateTime())
            .append("addressline", getAddressline())
            .append("taskStatus", getTaskStatus())
            .append("taskTimelineId", getTaskTimelineId())
            .append("updateBy", getUpdateBy())
            .append("createBy", getCreateBy())
            .append("recordStatus", getRecordStatus())
            .append("deleted", getDeleted())
            .append("attachmentJson", getAttachmentJson())
            .append("dateCurr", getDateCurr())
            .append("latitude", getLatitude())
            .append("taskId", getTaskId())
            .append("createTime", getCreateTime())
            .append("version", getVersion())
            .append("longitude", getLongitude())
            .toString();
    }
}
